using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace OrigPacman
{  
    class Pellet
    {
        #region Variables
        protected Vector2 position;
        protected int points;
        protected Texture2D texture;
        protected Rectangle container;
        protected int size;
        protected bool super;
        #endregion

        #region Constants
        private const int SizeOfPellet = 32;
        #endregion

        #region Properties
        public bool Super
        {
            get { return super; }
            set { super = value; }
        }
        public Vector2 Position
        {
            get { return position; }
            set
            {
                position = value;
                container.X = (int)position.X;
                container.Y = (int)position.Y;
            }
        }
        public Texture2D Texture
        {
            get { return texture; }
            set
            {
                texture = value;
                container.Width = texture.Width;
                container.Height = texture.Height;
            }
        }
        public int Points
        {
            get { return points; }
            set { points = value; }
        }
        public Rectangle Bounds
        {
            get { return container; }
            set
            {
                container = value;
                position = new Vector2(container.X, container.Y);
            }
        }
        public int Size
        {
            get { return size; }
            set
            {
                size = value;
                container.Width = size;
                container.Height = size;
            }
        }
        #endregion

        public Pellet()
        {
            size = SizeOfPellet;
            super = false;
            container = new Rectangle(0,0, size,size);
        }
    }
}
